<?php
require_once 'includes/config.php';
require_once 'includes/functions.php';
require_once 'includes/class.phpmailer.php';
if(!empty($_POST['submit']))
{
$memberType=$_REQUEST['registerMember'];
$userName=$_REQUEST['userName'];
$password=$_REQUEST['password'];
$email=$_REQUEST['email'];
$firstName=$_REQUEST['firstName'];
$lastName=$_REQUEST['lastName'];
$address1=$_REQUEST['address1'];
$address2=$_REQUEST['address2'];
$address3=$_REQUEST['address3'];
$country=$_REQUEST['country'];

if($country!=213)
{
	$province=$_REQUEST['province'];
	$city="";
	$state="";
}
else
{
	$province="";
	$city=$_REQUEST['city'];
	$state=$_REQUEST['state'];
}
$zip=$_REQUEST['zip'];
$dob=$_REQUEST['dYear']."-".$_REQUEST['dMonth']."-".$_REQUEST['dDay'];
$secretQuestion=$_REQUEST['secretQuestion'];
$secretAnswer=$_REQUEST['secretAnswer'];
$phoneNo=$_REQUEST['phoneNumber1']."-".$_REQUEST['phoneNumber2']."-".$_REQUEST['phoneNumber3'];
if(!empty($_REQUEST['extension']))
  $phoneNo.="-".$_REQUEST['extension'];
$currentDate=date("Y-m-d");

if($memberType=="buyer")
$user_type=1;
if($memberType=="seller")
$user_type=2;
if(is_numeric($state)) {
	$state = getStateName($state);
} 

if(is_numeric($city)) {
	$city = getCityName($city);
}
$sqlSelUsr = "select * from tbl_users where username='".$userName."'";
$rstSelUsr = mysql_query($sqlSelUsr) or die(mysql_error());
$noSelUsr = @mysql_num_rows($rstSelUsr);
if($noSelUsr==0)
{
$sqlSelEmail = "select * from tbl_users where email='".$email."'";
$rstSelEmail = mysql_query($sqlSelEmail) or die(mysql_error());
$noSelEmail = @mysql_num_rows($rstSelEmail);
if($noSelEmail==0)
{
  $confirmCode=get_rand_id(5);
  $sqlInsTmpUsr="INSERT INTO tbl_temp_user SET   
  				 	username='".sanitize($userName)."',
					password='".$password."',
					user_type=".$user_type.",
					confirmation_code='".$confirmCode."',
					first_name='".sanitize($firstName)."',
					last_name='".sanitize($lastName)."',
					address_line_1='".sanitize($address1)."',
					address_line_2='".sanitize($address2)."',
					city='".$city."',
					state='".$state."',
					country='".$country."',
					zip='".$zip."',
					phone_number_1='".$phoneNo."',
					email='".$email."',
					secret_question=".$secretQuestion.",
					secret_answer='".sanitize($secretAnswer)."',
					dob='".$dob."',
					province='".$province."',
					status=1,
					created_date='".$currentDate."'";
	$rstInsTmpUsr = mysql_query($sqlInsTmpUsr) or die(mysql_error());
	$insertedId=mysql_insert_id();
	
	if($insertedId!='' && $insertedId>0)
	{
		
	if($user_type==1 || $user_type==2)
	{
	   $sql="select count(*) as cnt from tbl_users where status=4 AND (user_type=1 OR user_type=2) AND (first_name like '%".$firstName."%' OR last_name like '%".$lastName."%'  OR dob='".$dob."')";
	   $rs=mysql_query($sql);
	   $row=mysql_fetch_array($rs);
	   $cnt=$row['cnt'];
	
	  if($cnt>0)
	   {
	      $sql=mysql_query("update tbl_temp_user set status='3' where user_id='".$insertedId."'");
	      mysql_query($sql);
	   }
	}
	
	$msg="<table width='100%' border='0' style='font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12px; line-height:25px'>
  <tr>
    <td width='18%' height='41'><table width='100%' border='0'>
      <tr>
        <td width='19%' height='68'><img src='".$base_url."images/logo.png' width='208' height='83'></td>
        <td width='81%'>Swapen sent this message to <b>".$firstName." ".$lastName."  ( ".$userName." )</b> <br>
Your registered name is included to show this message originated from Swapen. </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height='32' colspan='2' style='font-family:Verdana, Arial, Helvetica, sans-serif;font-size:13px;color:#FFFFFF;background-color:#0FB6FA;'><b>&nbsp;&nbsp;Complete your Swapen registration</b></td>
  </tr>
  <tr>
    <td>
      <table width='100%' border='0'>
        <tr>
          <td width='71%' height='124'><p><b>Hi ".$firstName." ".$lastName." </b>, </p>
          <p>Just click 'Activate Now' to complete your registration. That's all there is to it. After that, you are ready to start using Swapen.com</p></td>
          <td width='29%' style='text-align:center'><b>This is the last step, we promise!</b><a href='".$base_url."index.php?confirm&cnc=".$confirmCode."&usn=".$userName."' target='_blank' style='text-decoration:none; color:#FFFFFF'><img src='".$base_url."images/activate_now.gif' width='138' height='43'></a></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td><table width='100%' border='0'>
      <tr>
        <td height='28' style='background-color:#F3F3F3'><b>If the above link does not work:</b></td>
      </tr>
      <tr>
        <td height='80'>Type in or copy and paste this link into your Web browser: <br>
          <a href='".$base_url."index.php?confirm&cnc=".$confirmCode."&usn=".$userName."' target='_blank'>".$base_url."index.php?confirm&cnc=".$confirmCode."&usn=".$userName."</a><br></td>
      </tr>
    </table></td>
  </tr>
</table>
";
		$mail = new PHPMailer(); // defaults to using php "mail()"
	  	$mail->MsgHTML($msg);
		$mail->From       = "mail@swapen.com";
		$mail->FromName   = "Swapen.com";
		$mail->Subject    = "Complete your Swapen Registration -- last step";
		$mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
		$mail->AddAddress($email, $firstName);
		$mail->Send();
	  $msg="<font color='#005B00'>successfully registered, Check your email for confirmation.</font>";	  
	 }
	else
	  $msg="<font color='#FF0000'>Problem in registration, Try again.</font>";
}
else
	$msg="<font color='#FF0000'>Same email already exist, enter any other email.</font>";
}
else
 	$msg="<font color='#FF0000'>Same username already exist, Choose any other username.</font>";
}
?>
<style type="text/css">
        .box {
            float:left;
            width:506px;
        }
        .box_top {
            float:left;
            background:url(<?php echo $base_url?>images/register_images/box_top.png) no-repeat;
            width:505px;
            height:18px;
        }
        .box_bottom {
            float:left;
            background:url(<?php echo $base_url?>images/register_images/box_bottom.png) no-repeat;
            width:505px;
            height:18px;
        }
        .box_middle {
            float:left;
            background:url(<?php echo $base_url?>images/register_images/box_middle.png) repeat-y;
            width:505px;
            text-align:center;
        }
        .box_inner_img_top {
            float:left;
            width:500px;
            margin:-10px 0px 0px 0px;
        }
        .box_inner_btn {
            float:left;
            width:500px;
            margin:0px 0px -10px 0px;
        }
        .inr_btn {
            z-index:999;
            cursor:pointer;
        }
        .popup_box {
            float:left;
            width:572px;
        }
        .popup_box_top {
            float:left;
            width:570px;
            height:11px;
            background:url(<?php echo $base_url?>images/register_images/popup_box_top.png) no-repeat;
        }
        .popup_box_middle {
            float:left;
            width:570px;
            background:url(<?php echo $base_url?>images/register_images/popup_box_middle.png) repeat-y;
            text-align:center;
            font-family:arial;
            font-size:10px;
            font-weight:bold;
        }
        .popup_box_bottom {
            float:left;
            width:570px;
            height:11px;
            background:url(<?php echo $base_url?>images/register_images/popup_box_bottom.png) no-repeat;
        }
        .popup_box_btn {
            background:url(<?php echo $base_url?>images/register_images/popup_btn_backgd.png) repeat-x;
            height:31px;
            min-width:80px;
            border:0px;
        }
    </style>    
<script src="<?php echo $base_url?>js/jquery-1.4.4.js" type="text/javascript"></script>
<script src="<?php echo $base_url?>js/jquery.custom_radio_checkbox.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function(){
	$(".radio").dgStyle();
	$(".checkbox").dgStyle();
});
</script>
<div id="panel">
<form name="frmRegisterMember" id="frmRegisterMember" method="post" action="<?php echo $_SERVER['php_self']?> "  onsubmit="return validateRegisterMember()">
<input type="hidden" name="registerMemberKey" id="registerMemberKey" />

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
	<div class="releftbox_out">
	<div class="releftbox_top">&nbsp;</div>
	<div class="releftbox_repeat">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
	<td align="center"><img src="<?php echo $base_url?>images/register_images/register_member.png" align="absmiddle" /></td>
  </tr>
  <tr>
	<td align="center">7Already registered or want to make changes to your account? <a href="index.php?signin">Sign in. </a></td>
  </tr>
  <tr>
	<td>
		<div id="messageAreaTop" style="margin:10px 0px 10px 20px; float:left;"><?php if(isset($msg)) echo "<b>".$msg."</b>"; ?></div>
		
		<div class="blue_box">
			<div class="bluebar_left"></div>
			<div class="bluebar_center"><span>Tell us about yourself-(required)</span></div>
			<div class="bluebar_right"></div>
		</div>
		
		<div class="blue_box">
			<div class="form_field_box">
				<label for="firstName" id="lblFirstName">First name:</label>
				<span>
					
					<input type="text" name="firstName" value="<?php echo $_REQUEST['firstName']?>" id="firstName" class="inputbg" style="width:150px;" />
				</span>
			</div>
			<div class="form_field_box">
				<label for="lastName" id="lblLastName">Last name:</label>
				<span>
					
					<input type="text" name="lastName" id="lastName" value="<?php echo $_REQUEST['lastName']?>" class="inputbg" style="width:150px;"  />
					
				</span>
				
			</div>
			<div id="samename" style="display: none; color: #FF0000; float: left; font-weight: bold; text-align: center; width: 600px;">&nbsp;&nbsp;First Name and Last Name cannot be the same. </div>
		</div>
		<div class="blue_box">
			<div class="form_field_box_full">
				<label for="address1" id="lblAddress1">Address:</label>
				<span>
					
					<input type="text" name="address1" value="<?php echo $_REQUEST['address1']?>" id="address1" class="inputbg" />
					
				</span>
			</div>
		</div>
		<div class="blue_box">
			<div class="form_field_box">
				<label for="country" id="lblCountry">Country:</label>
				<span>
					<select name="country" id="country" onChange="javascript:funSelectState(this.value,'selectedState','0')" style="width:145px; height:27px;" class="inputbg">
						<option value="">Select country...</option> 
						<?php			   
						$sqlSelCountry="SELECT * FROM tbl_country where code='US'";
						$rstSelCountry=mysql_query($sqlSelCountry);
						while($rowSelCountry=mysql_fetch_array($rstSelCountry))
						{
							$cty_id=$rowSelCountry['country_id'];
							$cty_name=$rowSelCountry['country_name'];
							echo "<option value='$cty_id' selected='selected'>$cty_name</option>";
						}
						?>
					</select>
					<script>$('#country').val(<?php echo $_REQUEST['country'];?>);</script>
				</span>
			</div>
			
			<div class="form_field_box" id="selstate">
				<label for="state "id="lblState">State:</label>
				<span id="selectedState">
					<select class="inputbg" style="width: 145px; height: 28px;" onchange="funSelectCity(this.value,'selectedCity');" id="state" name="state">
						<option value="">Select state...</option>
						<?php
						if($_REQUEST['country']!='')
						{
							$qry = mysql_query("select stateid , statename,country_id from tbl_state where country_id='".$_REQUEST['country']."'") or die(mysql_error());
							$cnt_qry =  mysql_num_rows($qry);
							if($cnt_qry > 0)
							{
								while($row = mysql_fetch_array($qry))
								{
									if($_REQUEST['state']==$row['stateid'])
									{
								?>
									<option value="<?php echo $row['stateid']?>" selected="selected"><?php echo $row['statename']?></option>
								<?php
									}
									else {
										?>
									<option value="<?php echo $row['stateid']?>"><?php echo $row['statename']?></option>
									<?php
									}
								}
							}
							
						}
						?>	
					</select>
					
				</span>
				<script>$('#state').val(<?php echo $_REQUEST['state'];?>);</script>
			</div>
			
			<div class="form_field_box" id="selproviance" style="display:none">
				<label for="state "id="lblProvince">Province:</label>
				<span id="selectedprovince">
					<input type="text" name="province" value="<?php echo $_REQUEST['province']?>"  id="province"  class="inputbg" style="width:110px;" /> 
				</span>
			</div>
		</div>
		<div class="blue_box">
			<div class="form_field_box" id="selcity">
				<label for="city" id="lblCity">City:</label>
				<span id="selectedCity">
					<select name="city" id="city" style="width:145px; height:27px;" class="inputbg">
						<option value="">Select city...</option>
						<?php
						if($_REQUEST['state']!='')
						{
							$qry = mysql_query("select cityid , cityname,stateid from tbl_city where stateid='".$_REQUEST['state']."'") or die(mysql_error());
							$cnt_qry =  mysql_num_rows($qry);
							if($cnt_qry > 0)
							{
								while($row = mysql_fetch_array($qry))
								{
									if($_REQUEST['city']==$row['cityid'])
									{
									?>
										<option value="<?php echo $row['cityid']?>" selected="selected"><?php echo $row['cityname']?></option>
									<?php
									}
									else
									{
										?>
										<option value="<?php echo $row['cityid']?>"><?php echo $row['cityname']?></option>
										<?php
									}
								}
							}
						}
						?>
					</select>
					
				</span>
			</div>
			<div class="form_field_box">
				<label for="zip" id="lblZip">Zip Code:</label>
				<span>
					
					<input type="text" name="zip" value="<?php echo $_REQUEST['zip']?>" id="zip"  class="inputbg" style="width:110px;" />
					
				</span>
			</div>
		</div>
		<div class="blue_box">
			<div class="form_field_box_full">
				<label for="phoneNumber1" id="lblPhoneNumber">Telephone:</label>
				<span>
					<input type="text" name="phoneNumber1" id="phoneNumber1" value="<?php echo $_REQUEST['phoneNumber1']?>"  maxlength="4" style="width:30px;" class="inputbg" /><font style=" padding:10px 0px 0px 0px;"> - </font>
					<input type="text" name="phoneNumber2" id="phoneNumber2" value="<?php echo $_REQUEST['phoneNumber2']?>" maxlength="4" style="width:30px;"  class="inputbg" /><font style="padding:10px 0px 0px 0px;"> - </font>
					<input type="text" name="phoneNumber3" id="phoneNumber3" value="<?php echo $_REQUEST['phoneNumber3']?>" maxlength="6"  style="width:30px;"  class="inputbg" /> <font style="padding:10px 0px 0px 0px;">Ext :</font>
					<input type="text" name="extension" id="extension" value="<?php echo $_REQUEST['extension']?>" maxlength="20"  style="width:30px;"  class="inputbg" />
				</span>
			</div>	
		</div>
		<div class="blue_box">
			<div class="form_field_box">
				<label for="email" id="lblEmail">Email:</label>
				<span>
					
					<input type="text" name="email" id="email" value="<?php echo $_REQUEST['email']?>"  class="inputbg" style="width:150px;" />
					
				</span>
			</div>
			<div class="form_field_box">
				<label for="emailAgain" id="lblEmailAgain">Re-enter email:</label>
				<span>
					
					<input type="text" name="emailAgain" id="emailAgain" value="<?php echo $_REQUEST['email']?>"  class="inputbg" style="width:150px;" />
					
					<input type="hidden" name="user_type" id="user_type"  class="inputbg" />
				</span>
			</div>
		</div>
		
				
		<div class="blue_box">
			<div class="bluebar_left"></div>
			<div class="bluebar_center"><span>Choose your username and password-(required)</span></div>
			<div class="bluebar_right"></div>
		</div>
		<div class="blue_box">
			<div class="form_field_box_full">
				<label for="userName" id="lblUserName">Create Username:</label>
				<span><input type="text" name="userName" id="userName" value="<?php echo $_REQUEST['userName']?>" style="width:200px;" class="inputbg" /></span>
			</div>
			
		</div>
		<div class="blue_box">
			<div class="form_field_box_full">
				<label for="password" id="lblPassword">Create Password:</label>
				<span><input type="password" name="password" id="password" style="width:200px;" class="inputbg" /></span>
			</div>
			
		</div>
		<div id="errmsg" style="color:red"></div>
		<div class="blue_box">
			<div class="form_field_box_full">
				<label for="confirmPassword" id="lblConfirmPassword">Re-enter Password:</label>
				<span><input type="password" name="confirmPassword" id="confirmPassword"  style="width:200px;" class="inputbg" /></span>
			</div>
			
		</div>
		<div class="blue_box">
			<div class="form_field_box_full">
				<label for="secretQuestion" id="lblSecretQuestion">Pick a secret question:</label>
				<span>
					<select name="secretQuestion" id="secretQuestion" style="width:300px; height:27px;" class="inputbg">
						<option value="">Select a secret question</option>
						<?php
						$sqlSelQuestion = "select * from tbl_questions";
						$rstSelQuestion = mysql_query($sqlSelQuestion) or die(mysql_error());
						while($rowSelQuestion = mysql_fetch_array($rstSelQuestion))
						{ ?>
						<option value="<?php echo $rowSelQuestion['question_id'] ?>"><?php echo $rowSelQuestion['question'] ?></option>
						<?php } ?>
					</select>
					<script>$('#secretQuestion').val(<?php echo $_REQUEST['secretQuestion'];?>);</script>
				</span>
			</div>
			
		</div>
		<div class="blue_box">
			<div class="form_field_box_full">
				<label for="secretAnswer" id="lblSecretAnswer">Your seceret answer:</label>
				<span><input type="text" name="secretAnswer" value="<?php echo $_REQUEST['secretAnswer']?>" id="secretAnswer" class="inputbg" /></span>
			</div>
		</div>
		<div class="blue_box">
			<div class="form_field_box_full">
				<label for="dMonth" id="lblDOB">Date of birth:</label>
				<span>
					<select name="dMonth" id="dMonth" style="width:100px; height:27px;" class="inputbg">
						<option value="">--Month--</option>
						<option value="01">January</option>
						<option value="02">February</option>
						<option value="03">March</option>
						<option value="04">April</option>
						<option value="05">May</option>
						<option value="06">June</option>
						<option value="07">July</option>
						<option value="08">August</option>
						<option value="09">September</option>
						<option value="10">October</option>
						<option value="11">November</option>
						<option value="12">December</option>
					</select>&nbsp;&nbsp;
					<script>$('#dMonth').val('<?php echo $_REQUEST['dMonth'];?>');</script>
					<select name="dDay" id="dDay" style="width:80px; height:27px;" class="inputbg">
						<option value="">--Day--</option>
						<?php
						for($i=1;$i<=31;$i++)
						{
							if($i<=9)
							$d = '0'.$i;
							else
							$d = $i;
							?>
							<option value="<?php echo $d;?>"><?php echo $d;?></option>
							<?php
						}
						?>
					</select>&nbsp;&nbsp;
					<script>$('#dDay').val(<?php echo $_REQUEST['dDay'];?>);</script>
					<input type="text" name="dYear" id="dYear" value="<?php echo $_REQUEST['dYear']?>" value="YYYY" onclick="this.value=''" style="width:40px; height:27px;" maxlength="4" class="inputbg" />
					<br />
					
					<span class="boldGreyNotes" id="lblAgeNote" style="margin:5px 0px 10px 0px;">You must be at least 18 years old to use Swapen.</span><br/><br/>
				</span>
			</div>
		</div>
		<div class="blue_box">
				<div class="form_field_box_full" style="margin:10px 0px 10px 0px;">
					<label for="securityCode" id="lblSecurityCode">Prove you're human:</label>
					<span>
						<img id="siimage" align="left" style="padding-right: 5px; border: 0" src="securimage_show.php?sid=<?php echo md5(uniqid(time())); ?>" />
						<a tabindex="-1" style="border-style: none" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = 'securimage_show.php?sid=' + Math.random(); return false">
						<img src="images/reload.png" alt="Reload Image" border="0" onclick="this.blur()" align="bottom" /></a><br />
						
						<input type="text" name="securityCode" id="securityCode" style="width:200px;" class="inputbg" />
						
					</span>
				</div>
			</div>
		<div class="blue_box">
			&nbsp;
		</div>
		<div class="blue_box">
			<div class="form_field_box_full">
				<div class="checkbox"><input name="accept" id="accept" type="checkbox" /> </div> &nbsp;&nbsp;
				<label style="text-align:left;">I agree that:</label>
				<div id="lblAgreement" style="display:none; color:#FF0000; font-weight:bold">Acceptance of  agreement is must to register. </div>
			</div>
			<br /><br /><br />
			<ul>
				<li>I accept the <a href="" tabindex="1">User Agreement</a> and <a href="index.php?policy" target="_blank">Privacy Policy</a>.</li>
				<li>I may receive communications from swapen.</li>
				<li>I'm at least 18 years old.</li>
			</ul>
		</div>
		<div class="blue_box" style="text-align:center;">
			<input type="submit" name="submit" id="submit" value="REGISTER" class="sbmt_btn" />
		</div>
		<div id="messageAreaBottom" style="margin:10px 0px 10px 20px; float:left;"></div>
		
	</td>
  </tr>
 
</table>

	</div>
	<div class="releftbox_bot">&nbsp;</div>
	</div>
	
	<div class="rergtbox_out">
	<div class="rergtbox_top">&nbsp;</div>
	<div class="rergtbox_repeat">
		<ul class="register">
			<li>Verified Local Pick-Up
				<div class="bluebigarrow">&nbsp;</div>
			</li>
			<li>Custom Wanted Items List
				<div class="bluebigarrow">&nbsp;</div>
			</li>
			<li>Sell Products FOR Other Users
				<div class="bluebigarrow">&nbsp;</div>
			</li>
			<li>Have YOUR Products Sold for YOU
				<div class="bluebigarrow">&nbsp;</div>
			</li>
			<li>All Our Merchant are <font style="color:#24299B;">Verified</font>
				<div class="bluebigarrow">&nbsp;</div>
			</li>
			<li>Referral Commission Program
				<div class="bluebigarrow">&nbsp;</div>
			</li>
			<li>AND MUCH MUCH MORE
				<div class="bluebigarrow">&nbsp;</div>
			</li>
		</ul>
		
		<div class="fulldiv">
			<div class="quoteimg">&nbsp;</div>
		</div>
		<div class="fulldiv">
			<div class="quote">
			The best buying experience I have ever had was on Swapen.com 
			today. I registered today and was looking to purchase something 
			for my girlfriend. I saw that they had a local search. So I went 
			for it and found the perfect gift. Turned out that the store 
			was a few blocks away so I did local pick up. Got the product 
			from the store in ten minutes. <br/>
			<div style="float:right; text-align:right; margin:10px 0px 0px 0px;">Alex 30  California</div>
			</div>
		</div>
		
		<div class="fulldiv">
			<div class="quoteimg">&nbsp;</div>
		</div>
		<div class="fulldiv">
			<div class="quote">
			The reason I joined Swapen.com was to earn extra cash. I have lots  
			of friends who follow new trends and Swapen is defiently one. 
			I referred 20 friends to swapen and for each purchase they make  
			I will make a portion of it. I thought it was going to be the same  
			mlm seen on other sites, but that is not the case because  
			I've earned money from each sale. Thanks Swapen. <br/> 
			<div style="float:right; text-align:right; margin:10px 0px 0px 0px;">Sandy 25 New Mexico</div>
			</div>
		</div>
		
		<div class="fulldiv">
			<div class="quoteimg">&nbsp;</div>
		</div>
		<div class="fulldiv">
			<div class="quote">
			There are so many parts to Swapen.com that I like but listing 
			just a few doesnt give it justice, but I will anyway. When I look 
			through products I want to buy I make sure to find sellers who 
			provide bargaining. This way I always pay for what I want at the 
			price I can afford. I also create wishlists so that sellers can send 
			me offers. The more offers I get the more options for a better price. 
			Best of all I have a network of merchants that own stores so, I have  
			referred them and I'm making a good commission on each one. <br/>
			<div style="float:right; text-align:right; margin:10px 0px 0px 0px;">Dan 27 New Mexico</div>
			</div>
		</div>
		
		<?php if($_REQUEST['registerMember']=='seller') { ?>
		
		<div class="fulldiv">
			<div class="quoteimg">&nbsp;</div>
		</div>
		<div class="fulldiv">
			<div class="quote">
			My unemployment extension failed to pass and I was on the breaking point and then I heard abut how Swapen.com was            offering jobs for anyone with a computer and internet connect. I've heard of websites that offer jobs but you have to            sign up and pay a fee.I was still hopeful that it could be true, and it was. They allowed for me to sell productsfor            merchants and individuals. I spread the word to everyone I could and started to make commission on each sale.I work            full time on Swapen.com and try to increase my sales goal every quater.I never want to rely on the governments aid again. Swapen you saved me. Thank You.
<br/> 
			<div style="float:right; text-align:right; margin:10px 0px 0px 0px;">Steven 56 Georgia</div>
			</div>
		</div>
		
		
		<div class="fulldiv">
			<div class="quoteimg">&nbsp;</div>
		</div>
		<div class="fulldiv">
			<div class="quote">
			I have a good stable job for a financial company and make a pretty good living. I signedup on Swapen.com recently to sell my xbox 360, because I heard they dont charge listing fees. Plus I wanted to see what the hype was about. I sold my xbox in a week and decidedto become a seller part time.
<br/> 
			<div style="float:right; text-align:right; margin:10px 0px 0px 0px;">Branda 23 New York</div>
			</div>
		</div>
		
		<div class="fulldiv">
			<div class="quoteimg">&nbsp;</div>
		</div>
		<div class="fulldiv">
			<div class="quote">
			I have been selling on ebay for many years and making lots of money. I heard about Swapen.com and the different selling options they provide so I decided to sign up. They provided me with a free store, free listings, and I quickly got up to 10 transactions within a couple of days so that I could have someone on the site sell producs for me. I wanted to see the turn around, and I was amazed I sold 50% faster with someone else selling for me as oppose on my own. Swapenyou are great keep up the good work.
<br/> 
			<div style="float:right; text-align:right; margin:10px 0px 0px 0px;">Faraz 34 Florida</div>
			</div>
		</div>
		<?php } ?>
		
		<div class="fulldiv">
			<div class="lock_text">Your privacy<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is important to us...</div>
		</div>
		
		<div class="fulldiv">
			<div class="lockimg">&nbsp;</div>
		</div>
		
		<div class="fulldiv">
			<div class="privacy_txt">
			Swapen does not rent or sell your information
			to third parties without your consent. To learn 
			more, read our <a href="#" class="bluelink">privacy policy</a>
			</div>
		</div>	
		
	</div>
	<div class="rergtbox_bot">&nbsp;</div>
	</div>
</td>
</tr>
</table>
</form>
</div>
<div class="popup_box" id="popup" style="display:none;position:absolute;top:700px;">
        <div class="popup_box_top"></div>
        <div class="popup_box_middle">
            <div style="float: left; margin: 0 30px; padding: 5px; text-align: left; width: 85%;">
                As a international member you may only register as a seller.<br /><br />
                where you can sell for others, refer for commission and or able to create free classified ads.<br /><br />
                for more information <a href="#">click here</a>
            </div>
            <div style="float:left; width:90%; padding:5px;">
                <input type="button" name="" value="Close" class="popup_box_btn" style="cursor:pointer;"; onclick="document.getElementById('popup').style.display='none'" />&nbsp;&nbsp;&nbsp;&nbsp;
            </div>
        </div>
        <div class="popup_box_bottom"></div>
</div>
<?php
    if(empty($_REQUEST['state']))
    {
?>
<script>
       $(document).ready(function() {
	funSelectState('213','selectedState','1');
       });
</script>
<?php
    }
?>